import layout from '@/layout/index'

const userRouter = [
  {
    path: '/user',
    component: layout,
    isParent: true,
    redirect: '/user/manage',
    meta: {
      title: '用户管理',
      icon: 'user'
    },
    children: [
      // 用户管理
      {
        path: '/user/manage',
        component: () => import('@/views/user/list/index'),
        meta: {
          title: '用户管理',
          icon: 'team'
        }
      },
      // 角色
      {
        path: '/user/role',
        component: () => import('@/views/user/role/list/index'),
        meta: {
          title: '角色管理',
          icon: 'role'
        }
      },
      // 权限
      {
        path: '/user/permission',
        component: () => import('@/views/user/auth/list/index'),
        meta: {
          title: '权限管理',
          icon: 'permission'
        }
      }
    ]
  }
]

export default userRouter
